<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Admin extends CI_Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->load->library('session');
        $this->load->helper('url');

        if (!$this->session->userdata('user')) redirect('passport/login');
    }


    public function index()
    {
        $this->load->view('admin');
    }


    public function article($param)
    {
        $this->doAction("Article_Action", $param);
    }

    public function articleType($param)
    {
        $this->doAction("Article_Type_Action", $param);
    }
}